{% set modules_path = [
     '/root/.ansible/plugins/modules',
     '/usr/share/ansible/tripleo-plugins/modules',
     '/usr/share/ansible/plugins/modules',
   ]
%}
{% set lookups_path = [
     '/root/.ansible/plugins/lookup',
     '/usr/share/ansible/tripleo-plugins/lookup',
     '/usr/share/ansible/plugins/lookup',
   ]
%}
{% set callbacks_path = [
     '/root/.ansible/plugins/callback',
     '/usr/share/ansible/tripleo-plugins/callback',
     '/usr/share/ansible/plugins/callback',
   ]
%}
{% set action_plugins_path = [
     '/root/.ansible/plugins/action',
     '/usr/share/ansible/tripleo-plugins/action',
     '/usr/share/ansible/plugins/action',
   ]
%}
{% set filter_plugins_path = [
     '/root/.ansible/plugins/filter',
     '/usr/share/ansible/tripleo-plugins/filter',
     '/usr/share/ansible/plugins/filter',
   ]
%}
{% set roles_path = [
     '/root/.ansible/roles',
     '/usr/share/ansible/tripleo-roles',
     '/usr/share/ansible/roles',
     '/etc/ansible/roles',
   ]
%}
{% if ansible_python.version.major == 3 %}
{%   set _ = action_plugins_path.append('/usr/local/lib/python3.6/site-packages/ara/plugins/actions') %}
{% else %}
{%   set _ = action_plugins_path.append('/usr/lib/python2.7/site-packages/ara/plugins/actions') %}
{% endif %}
{% if ansible_python.version.major == 3 %}
{% else %}
{%   set _ = callbacks_path.append('/usr/lib/python2.7/site-packages/ara/plugins/callbacks') %}
{% endif %}
[defaults]
roles_path={{ roles_path | join(':') }}
library={{ modules_path | join(':') }}
callback_plugins={{ callbacks_path | join(':') }}
action_plugins={{ action_plugins_path | join(':') }}
lookup_plugins={{ lookups_path | join(':') }}
filter_plugins={{ filter_plugins_path | join(':') }}

[ara]
database=sqlite:///{{ ara_overcloud_db_path }}
